#pragma once
#include "Colider.h"
#include "QuadTreeNode.h"

class OctTree
{
public:
	// game objects in the tree
	std::vector<OctChild*> _children; 
	
	// starting node
	QuadTreeNode* _MainNode;

public:
	OctTree(Vector3<float> origin, float width, float height, float depth);
	~OctTree(void);

	bool ObjectMoved(Colider* obj);

	bool addGameObject(Colider* obj);

	void removeGameObject(Colider* obj);

	void Draw();

	std::vector<Colider*> InBox(Colider* obj);
};



